//
//  DrivesMgr.h
//  carcareIOS
//
//  Created by tianxing on 16/3/7.
//  Copyright © 2016年 baozun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DBCalendarWay.h"
#import "DrivesModel.h"

#define DRIVERSMGR [DrivesMgr sharedInstance]

@interface DrivesMgr : NSObject

DEF_SINGLETON

//当前选择的一天的行程的model
@property (nonatomic , strong) DrivesModel * selelctDrivesModel;

@property (nonatomic, copy) NSArray *days;
@property (nonatomic, assign) NSInteger dayIndex;
//只在DrivesViewController的viewDidLoad中使用
@property (nonatomic, copy) void (^LoadDayOK)();
-(void)loadPreloadDays;

-(void)drivesWithDate:(NSString *)date finish:(void(^)(DrivesModel *model))finish;

//选择某一天
-(void)startDayWithDate:(NSDate *)date;
-(void)loadNextDayFinish:(void (^)(NSInteger fromRow,NSInteger toRow))finish;
-(void)loadLastDayFinish:(void (^)(NSInteger fromRow,NSInteger toRow))finish;

-(BOOL)isDrivesInDate:(NSString *)date;//yyyy-MM-dd
-(void)calendarWayInfosWithYear:(NSInteger)year month:(NSInteger)month loadFirst:(void (^)())loadFirst;//获取日历

@end
